
import 'package:containerbox_study/routers/router_table.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    RouterManager.initRouter(whiteList : [
      '/',
      '/home',
      '/login',
      '/articleDetail',
      '/articleDetail',
      '/articleDetail',
      '/articleDetail/:title'
    ]);
    
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.cyan,
        dividerColor: Colors.white,
        primaryColor: Colors.red,
        // textTheme: TextTheme(bodyText2: TextStyle(color: Colors.red), button: TextStyle(color: Colors.white)),
      ),
      onGenerateRoute: RouterManager.router!.generator,
    );
  }
}
